import Vue from "vue";
import App from "./App.vue";
import router from "../src/router/index";
import "normalize.css/normalize.css";
import "./assets/css/index.css";
import "element-ui/lib/theme-chalk/index.css";

import "iview/dist/styles/iview.css";
import iView from "iview";
import ElementUI from "element-ui";

//注册全局组件
import {
  loadComponent,
  mapMenusToRoutes,
  loadGlobalCpn,
} from "./utils/loadComponent.js";
loadComponent();
mapMenusToRoutes();
loadGlobalCpn();

Vue.use(ElementUI);
Vue.use(iView);

import store from "./store/index";
Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
  router,
  store,
}).$mount("#app");
